home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / math / ucalc30c.zip / PLOTDEMO < prev    next >
Text File  |  1996-04-17  |  1KB  |  49 lines

  1. ; To run this demo, type   UCALC < PLOTDEMO   at the DOS prompt.
  2. ; Please remember to register.
  3.  
  4. prec 4 ; Many graphs do not require high precision for visual accuracy.
  5. gcolor 8 ; GCOLOR sets the background color.
  6.  
  7. plot
  8. y=sin(x)   ; Try the different menu options,
  9. y=2sin(x)  ; and then press [Esc] to move on to the next screen.
  10. y=3sin(x)
  11. y=4sin(x)
  12.  
  13. plot y=x*sin(x)-2
  14.  
  15. grid 7
  16.  
  17. plot y=x*sin(x)-2, 1 to 5  ; Same equation, but within an interval
  18.  
  19. grid 0   ; grid is turned off
  20. prec 10  ; precision is reset to default
  21.  
  22. plot r=t/pi, 0 to 5pi   ; Polar equation
  23. plot x=cos(t)-cos(2t), y=sin(t)-sin(2t), 0 to 2pi ; Parametric equation
  24. plot 3*sin(t), t, -7.5 to 7.5  ; Another parametric equation
  25.  
  26. window(0,10,0,8)      ; (0,0) is now on the bottom left of the screen
  27. plot x^sin(x)
  28.  
  29. window(-10,10,-7.5,7.5) ; Back to the default window setting
  30.  
  31. plot                    ; Plot by itself prompts for multiple equations
  32. line(-6,-5,-1,4)
  33. y=sin(x)
  34. y=2sin(x)
  35. r=2cos(3t)
  36. x=2cos(t), y=2sin(t)
  37. rect(5,3,7,7)
  38. fill(6,4)
  39.  
  40. plot"graph1.dat"        ; Plots the data from another file
  41.  
  42. plot
  43. sin(x)
  44. rect(-9,-5,-4,-2)
  45. "graph2.dat"
  46.  
  47. exit
  48.  
  49.